﻿<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/mui.min.css" rel="stylesheet" />
    <script src="~/Scripts/mui.min.js"></script>
    <script src="~/Scripts/jQuery.min.js"></script>
    <title>支付平台</title>
    <script type="text/JavaScript">
        function isWeiXin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                return true;
            } else {
                return false;
            }
        }
        $(function () {
            if (!isWeiXin()) {
                var text = $("#text").html();
                var amount = $("#amount").html();
                var url = "/Alipay/GetAlipayData";
                $.post(url,
                {
                    orderId: '@ViewBag.orderId'
                }, function (data) {
                    if (data != "") {
                        $("#formDiv").append(data.alipayData);
                        $("#alipaysubmit").submit();
                    }
                });
            }
            else {

            }
        });
    </script>
</head>
<body>
    <div>
        <img src="~/image/toop.png" width="100%" />
        <!--form-->
        <div id="formDiv" style="display: none;">
        </div>
    </div>
</body>
</html>
